<?php
if (!defined('_JEXEC')) die('Direct Access to this location is not allowed.');

function com_install() 
{
?>
	<h2>Successfully installed Property!</h2> <BR>
<?php
}

jimport('joomla.filesystem.file');
$destino_imagen = JPATH_SITE.DS.'images'.DS.'properties';
JFolder::create($destino_imagen,0777);
JFolder::create($destino_imagen.DS.'peques',0777); 
JFolder::create($destino_imagen.DS.'panoramics',0777);
JFolder::create($destino_imagen.DS.'tools',0777);
JFolder::create($destino_imagen.DS.'profiles',0777);
if (JFolder::move(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_properties'.DS.'properties',$destino_imagen )) {
echo 'images installed: <br>';
echo JPATH_ADMINISTRATOR.DS.'components'.DS.'com_properties'.DS.'properties'.' to: <br>';
echo $destino_imagen.' <br>';
} else {
   echo 'error';
}

?>